package com.zhixinglu.cloud.spring.boot.easyexcel.pojo.excel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * DemoData
 * </p>
 *
 * @author weixin
 * @date 2023/9/20 17:59
 */
@Data
@EqualsAndHashCode
@ContentRowHeight(20)
@HeadRowHeight(20)
@ColumnWidth(25)
public class DemoData {

    /**
     * 字符串标题
     */
    @ExcelProperty("字符串标题")
    private String string;

    /**
     * 数字标题
     */
    @ExcelProperty("数字标题")
    private Double doubleData;

    /**
     * 日期标题
     */
    @ExcelProperty("日期标题")
    private Date date;

    /**
     * 忽略这个字段
     */
    @ExcelIgnore
    private String ignore;

}
